package com.success.application.user.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018/8/13.
 */

public class MyFriendActivity extends AppCompatActivity {
    private static final String ARG_LIST = "list";

    private RecyclerView mRecyclerView;
    private RecyclerView.LayoutManager mLayoutManager;
//
//    public static void startActivity(Context context, List<NineGridTestModel> list) {
//        Intent intent = new Intent(context, RecyclerViewExampleActivity.class);
//        intent.putExtra(ARG_LIST, (Serializable) list);
//        context.startActivity(intent);
//    }

//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_recycler_view_example);
//
//        getIntentData();
//        initView();
//    }
//
//    private void getIntentData() {
//        mList = (List<NineGridTestModel>) getIntent().getSerializableExtra(ARG_LIST);
//    }
//
//    private void initView() {
//        mRecyclerView = (RecyclerView) findViewById(R.id.recyclerView);
//
//        mLayoutManager = new LinearLayoutManager(this);
//        mRecyclerView.setLayoutManager(mLayoutManager);
//

//        mAdapter.setList(mList);
//        mRecyclerView.setAdapter(mAdapter);
//    }
}
